package com.zbkj.service.model.dto;

import com.zbkj.dal.entity.user.UserSearch;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
public class UserSearchHistoryDTO {

    private Integer id;

    private String keywords;

    private LocalDateTime createdTime;

    public UserSearchHistoryDTO(UserSearch userSearch) {
        this.id = userSearch.getId();
        this.keywords = userSearch.getKeywords();
        this.createdTime = userSearch.getCreateTime();
    }
}
